using System;
using System.Windows.Forms;

using SBPweb.Modules.Smartparts;

namespace SBPweb.Presentation.Windows.Forms.Controls
{

    internal class AligningConverter
    {

        internal static DockStyle AligningToDockStyle(Aligning align)
        {
            switch (align)
            {
                case Aligning.Back:
                case Aligning.Front:
                    return DockStyle.None;
                    //break;
                default:
                    return (DockStyle)Enum.Parse(typeof(DockStyle), align.ToString());
                    //break;
            }
        }

    }

}